<%@ include file="../header.jsp" %>
<%@ page import="admin.system.role.*" %>
<script language=javascript>
 function formValidation() {
    var d1 = fm.role_id;
    var d2 = fm.role_name;
    var d3 = fm.role_des;
    if (isNull(d1,"Role ID")||isNull(d2,"Role Name")||isNull(d3,"Role Description"))  {
       return false;
    }
    return true;
 }
<%
    RoleBean role = (RoleBean)request.getAttribute("role");
    if (role==null)
       role = new Role();
%>
</script>
<body>
<h2>Role Maintenance</h2>
<form id=fm method=post action=<%=contextPath%>/servlet/admin.system.role.RoleServlet >
<input type=hidden name=formAction value=<%=formAction%> >
<table cols=2 border=0 >
<tr>
  <td>Role ID</td>
  <td><input type=text name=role_id value="<%=role.getRole_id()%>" maxlength=10 <%=readOnly%> ></td>
</tr>
<tr>
  <td>Role Name</td>
  <td><input type=text name=role_name value="<%=role.getRole_name()%>" maxlength=50></td>
</tr>
<tr>
  <td>Role Description</td>
  <td><input type=text name=role_des value="<%=role.getRole_des()%>" maxlength=100></td>
</tr>
</table>
<hr>
<p>
  <INPUT type=button value=Save onclick="save()" >
  <INPUT type=button value=Delete  onclick="deleteRecord()"  >
  <INPUT type=reset  value=Cancel >
</p>
</form>
<%@ include file="../footer.jsp" %>
</body>
</body>
</html>

